#!/usr/bin/env python
# -*- coding: utf-8 -*-
# @Time : 2018/12/28 0028 8:27
# @Author : Ares_Wang
# @Site : 
# @File : numpy_operate.py
# @Software: PyCharm

import numpy as np

a=np.array([0,0,1,1])
print(a)

a=a.astype("bool")
print(a)

a = ~a
a = a.astype("int")
print(a)